package semant.second_pass;

import semant.Env;
import syntaxtree.VarDecl;
import syntaxtree.VisitorAdapter;

final class VarDeclHandler extends VisitorAdapter {

    private Env env;

    private VarDeclHandler(Env e){
	super();
	env = e;
    }

    static void secondPass(Env e, VarDecl vd){
	VarDeclHandler h = new VarDeclHandler(e);
	vd.accept(h);
    }

    public void visit(VarDecl node){
	TypeHandler.secondPass(env, node.type);
    }

}
